package cn.usain.mapper;

import cn.usain.entity.Leader;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface LeadersMapper {
    // 定义插入团长申请信息的方法，使用Insert注解来指定对应的SQL语句
    @Insert("INSERT INTO group_leaders (name, phone_number, application_name, display_image, business_hours, business_days, region, detailed_address) " +
            "VALUES (#{name}, #{phoneNumber}, #{applicationName}, #{displayImage}, #{businessHours}, #{businessDays}, #{region}, #{detailedAddress})")
    int insertGroupLeader(Leader leader);

}
